<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>

<html>
<head><title>ViewAllAccounts</title></head>

<body bgcolor="#ffffff">
<h1>View All Accounts</h1>

<table border="1" width="100%">
   <thead>
      <tr>
         <th>Id</th>
         <th>Name</th>
         <th>Address</th>
         <th>Email</th>
         <th>Phone</th>
      </tr>
   </thead>

   <c:forEach items="${accountModel}" var="accountObject"
              varStatus="status">
      <tr>
         <td>
            <a href="AccountForm.html?id=${accountObject.id}">
            ${accountObject.id}</a>
         </td>
         <td> ${accountObject.name}</td>
         <td> ${accountObject.address}</td>
         <td> ${accountObject.email}</td>
         <td> ${accountObject.phone}</td>
      </tr>
   </c:forEach>

   <tr>
      <td colspan="5">
         <a href="AccountForm.html">
            Click here to add new Account
         </a>
      </td>
   </tr>
</table>

</body>
</html>